

* Try my models *
use "sop2021JLCdata.dta"


tsset term


*** APPENDIX TABLE 3 ***

* My Med Dist model with Moffet controls
nbreg totalGrantedFJC totalGrantedFJC_t1 post1988 diff_numCertPool white medDist bindergrid1_t5 diff_absAvgCircSCdist diff_totalCertPet diff_pcthighestcoalition_t1 diff_pctDisconnected_t1
est store med
estat ic

* My vfp Dist model with Moffet controls
nbreg totalGrantedFJC totalGrantedFJC_t1 post1988 diff_numCertPool white vfpDist bindergrid1_t5 diff_absAvgCircSCdist diff_totalCertPet diff_pcthighestcoalition_t1 diff_pctDisconnected_t1
est store vfp
estat ic

* My jcmed Dist model with Moffet controls
nbreg totalGrantedFJC totalGrantedFJC_t1 post1988 diff_numCertPool white jcMedDist bindergrid1_t5 diff_absAvgCircSCdist diff_totalCertPet diff_pcthighestcoalition_t1 diff_pctDisconnected_t1
est store jcmed
estat ic

* My jcmed Dist model with Moffet controls
nbreg totalGrantedFJC totalGrantedFJC_t1 post1988 diff_numCertPool white majPartyDist bindergrid1_t5 diff_absAvgCircSCdist diff_totalCertPet diff_pcthighestcoalition_t1 diff_pctDisconnected_t1
est store majparty
estat ic




*** SEE END OF DO FILE FOR TABLES 5 AND 6 SINCE THEY USE MOFFET ET AL.'S DATA ***




*** APPENDIX TABLE 6 ***

* My Med Dist model as an error correciton but as regression like Moffet *
reg d.totalGrantedFJC l.post1988 d.post1988 l. numCertPool d.numCertPool l.pcthighestcoalition d.pcthighestcoalition l.pctDisconnected_t1 d.pctDisconnected_t1 l.white d.whit l.medDist d.medDist l.bindergrid1_t5 d.bindergrid1_t5 l.absAvgCircSCdist d.absAvgCircSCdist l.totalCertPet d.totalCertPet l.totalGrantedFJC
est store ecmmed
estat ic 

* My VFP Dist model as an error correciton but as regression like Moffet *
reg d.totalGrantedFJC l.post1988 d.post1988 l. numCertPool d.numCertPool l.pcthighestcoalition d.pcthighestcoalition l.pctDisconnected_t1 d.pctDisconnected_t1  l.white d.white l.vfpDist d.vfpDist l.bindergrid1_t5 d.bindergrid1_t5 l.absAvgCircSCdist d.absAvgCircSCdist l.totalCertPet d.totalCertPet l.totalGrantedFJC
est store ecmvfp
estat ic

* My JC Med Dist model as an error correciton but as regression like Moffet *
reg d.totalGrantedFJC l.post1988 d.post1988 l. numCertPool d.numCertPool l.pcthighestcoalition d.pcthighestcoalition l.pctDisconnected_t1 d.pctDisconnected_t1  l.white d.white l.jcMedDist d.jcMedDist l.bindergrid1_t5 d.bindergrid1_t5 l.absAvgCircSCdist d.absAvgCircSCdist l.totalCertPet d.totalCertPet l.totalGrantedFJC
est store ecmjcmed
estat ic 

* My JC Med Dist model as an error correciton but as regression like Moffet *
reg d.totalGrantedFJC l.post1988 d.post1988 l. numCertPool d.numCertPool l.pcthighestcoalition d.pcthighestcoalition l.pctDisconnected_t1 d.pctDisconnected_t1  l.white d.white l.majPartyDist d.majPartyDist l.bindergrid1_t5 d.bindergrid1_t5 l.absAvgCircSCdist d.absAvgCircSCdist l.totalCertPet d.totalCertPet l.totalGrantedFJC
est store ecmmajparty
estat ic 




*** APPENDIX TABLE 7 ***

* My Med Dist model as an error correciton but as regression like Moffet *
reg d.totalGrantedFJC l.post1988 d.post1988 l. numCertPool d.numCertPool l.white d.white l.medDist d.medDist l.bindergrid1_t5 d.bindergrid1_t5 l.absAvgCircSCdist d.absAvgCircSCdist l.totalCertPet d.totalCertPet l.totalGrantedFJC l.mq1MedClosestPoleDist d.mq1MedClosestPoleDist
est store ecmmedpole

* My VFP Dist model as an error correciton but as regression like Moffet *
reg d.totalGrantedFJC l.post1988 d.post1988 l. numCertPool d.numCertPool l.white d.white l.vfpDist d.vfpDist l.bindergrid1_t5 d.bindergrid1_t5 l.absAvgCircSCdist d.absAvgCircSCdist l.totalCertPet d.totalCertPet l.totalGrantedFJC l.mq1MedClosestPoleDist d.mq1MedClosestPoleDist
est store ecmvfppole

* My JC Med Dist model as an error correciton but as regression like Moffet *
reg d.totalGrantedFJC l.post1988 d.post1988 l. numCertPool d.numCertPool l.white d.white l.jcMedDist d.jcMedDist l.bindergrid1_t5 d.bindergrid1_t5 l.absAvgCircSCdist d.absAvgCircSCdist l.totalCertPet d.totalCertPet l.totalGrantedFJC l.mq1MedClosestPoleDist d.mq1MedClosestPoleDist
est store ecmjcmedpole

* My JC Med Dist model as an error correciton but as regression like Moffet *
reg d.totalGrantedFJC l.post1988 d.post1988 l. numCertPool d.numCertPool l.white d.white l.majPartyDist d.majPartyDist l.bindergrid1_t5 d.bindergrid1_t5 l.absAvgCircSCdist d.absAvgCircSCdist l.totalCertPet d.totalCertPet l.totalGrantedFJC l.mq1MedClosestPoleDist d.mq1MedClosestPoleDist
est store ecmmajpartypole




*** APPENDIX TABLE 8 ***

* My Med Dist model with control for SG pet
nbreg totalGrantedFJC totalGrantedFJC_t1 post1988 diff_numCertPool white medDist bindergrid1_t5 diff_absAvgCircSCdist diff_totalCertPet diff_pcthighestcoalition_t1 diff_pctDisconnected_t1 sgpetitions
est store medosg

nbreg totalGrantedFJC totalGrantedFJC_t1 post1988 diff_numCertPool white vfpDist bindergrid1_t5 diff_absAvgCircSCdist diff_totalCertPet diff_pcthighestcoalition_t1 diff_pctDisconnected_t1 sgpetitions
est store vfposg

nbreg totalGrantedFJC totalGrantedFJC_t1 post1988 diff_numCertPool white jcMedDist bindergrid1_t5 diff_absAvgCircSCdist diff_totalCertPet diff_pcthighestcoalition_t1 diff_pctDisconnected_t1 sgpetitions
est store jcmedosg

nbreg totalGrantedFJC totalGrantedFJC_t1 post1988 diff_numCertPool white majPartyDist bindergrid1_t5 diff_absAvgCircSCdist diff_totalCertPet diff_pcthighestcoalition_t1 diff_pctDisconnected_t1 sgpetitions
est store majpartyosg 





*** APPENDIX TABLE 9 ***

* My Med Dist model with Moffet controls
nbreg totalGrantedFJC totalGrantedFJC_t1 post1988 diff_numCertPool white medDist bindergrid1_t5 diff_absAvgCircSCdist diff_totalCertPet diff_mq1MedClosestPoleDist
est store medPole

* My vfp Dist model with Moffet controls
nbreg totalGrantedFJC totalGrantedFJC_t1 post1988 diff_numCertPool white vfpDist bindergrid1_t5 diff_absAvgCircSCdist diff_totalCertPet diff_mq1MedClosestPoleDist
est store vfpPole

* My jcmed Dist model with Moffet controls
nbreg totalGrantedFJC totalGrantedFJC_t1 post1988 diff_numCertPool white jcMedDist bindergrid1_t5 diff_absAvgCircSCdist diff_totalCertPet diff_mq1MedClosestPoleDist
est store jcmedPole

* My jcmed Dist model with Moffet controls
nbreg totalGrantedFJC totalGrantedFJC_t1 post1988 diff_numCertPool white majPartyDist bindergrid1_t5 diff_absAvgCircSCdist diff_totalCertPet diff_mq1MedClosestPoleDist
est store majpartyPole





*** APPENDIX TABLE 10 ***

* My Med Dist model with Moffet controls
nbreg totalGrantedFJC totalGrantedFJC_t1 post1988 diff_numCertPool white medDistMB bindergrid1_t5 diff_absAvgCircSCdist diff_totalCertPet diff_pcthighestcoalition_t1 diff_pctDisconnected_t1
est store medMB

* My vfp Dist model with Moffet controls
nbreg totalGrantedFJC totalGrantedFJC_t1 post1988 diff_numCertPool white vfpDistMB bindergrid1_t5 diff_absAvgCircSCdist diff_totalCertPet diff_pcthighestcoalition_t1 diff_pctDisconnected_t1
est store vfpMB

* My jcmed Dist model with Moffet controls
nbreg totalGrantedFJC totalGrantedFJC_t1 post1988 diff_numCertPool white jcMedDistMB bindergrid1_t5 diff_absAvgCircSCdist diff_totalCertPet diff_pcthighestcoalition_t1 diff_pctDisconnected_t1
est store jcmedMB

* My jcmed Dist model with Moffet controls
nbreg totalGrantedFJC totalGrantedFJC_t1 post1988 diff_numCertPool white partyMedDistMB bindergrid1_t5 diff_absAvgCircSCdist diff_totalCertPet diff_pcthighestcoalition_t1 diff_pctDisconnected_t1
est store majpartyMB




*** APPENDIX TABLE 11 ***

* create Harvey measure
gen scotusHmedDistJCS = .
replace scotusHmedDistJCS = houseMed - courtMed

* My Med Dist model with Harvey constraint JCS
nbreg totalGrantedFJC totalGrantedFJC_t1 post1988 diff_numCertPool white scotusHmedDistJCS bindergrid1_t5 diff_absAvgCircSCdist diff_totalCertPet diff_pcthighestcoalition_t1 diff_pctDisconnected_t1



*load Moffet et al.'s data
clear

use "OriginalMoffetData.dta"

tsset year




*** ORIGINAL MOFFET ET AL JSJ PAPER MODEL ***

reg d.docket d.pcthighestcoalition l.pcthighestcoalition d.pctsplitdec l.pctsplitdec d.lagpctideologydisconnected l.lagpctideologydisconnected d.baileyoutlier l.baileyoutlier d.fouryrmajorlaws l.fouryrmajorlaws d.judicialagreement l.judicialagreement d.appealsscdist l.appealsscdist d.pre1988 l.pre1988 d.institutionalization l.institutionalization d.blackmun l.blackmun d.transcurbprevcong l.transcurbprevcong d.sgpetitions l.sgpetitions l.docket
est store origMoffet





*** APPENDIX TABLE 4 ***

reg d.docket d.pcthighestcoalition l.pcthighestcoalition d.pctsplitdec l.pctsplitdec d.lagpctideologydisconnected l.lagpctideologydisconnected d.meddist l.meddist d.fouryrmajorlaws l.fouryrmajorlaws d.judicialagreement l.judicialagreement d.appealsscdist l.appealsscdist d.pre1988 l.pre1988 d.institutionalization l.institutionalization d.blackmun l.blackmun d.transcurbprevcong l.transcurbprevcong d.sgpetitions l.sgpetitions l.docket
est store moffetMyJCSmed
estat ic

reg d.docket d.pcthighestcoalition l.pcthighestcoalition d.pctsplitdec l.pctsplitdec d.lagpctideologydisconnected l.lagpctideologydisconnected d.vfpdist l.vfpdist d.fouryrmajorlaws l.fouryrmajorlaws d.judicialagreement l.judicialagreement d.appealsscdist l.appealsscdist d.pre1988 l.pre1988 d.institutionalization l.institutionalization d.blackmun l.blackmun d.transcurbprevcong l.transcurbprevcong d.sgpetitions l.sgpetitions l.docket
est store moffetMyJCSvfp
estat ic

reg d.docket d.pcthighestcoalition l.pcthighestcoalition d.pctsplitdec l.pctsplitdec d.lagpctideologydisconnected l.lagpctideologydisconnected d.jcmeddist l.jcmeddist d.fouryrmajorlaws l.fouryrmajorlaws d.judicialagreement l.judicialagreement d.appealsscdist l.appealsscdist d.pre1988 l.pre1988 d.institutionalization l.institutionalization d.blackmun l.blackmun d.transcurbprevcong l.transcurbprevcong d.sgpetitions l.sgpetitions l.docket
est store moffetMyJCSjcmed
estat ic

reg d.docket d.pcthighestcoalition l.pcthighestcoalition d.pctsplitdec l.pctsplitdec d.lagpctideologydisconnected l.lagpctideologydisconnected d.majpartydist l.majpartydist d.fouryrmajorlaws l.fouryrmajorlaws d.judicialagreement l.judicialagreement d.appealsscdist l.appealsscdist d.pre1988 l.pre1988 d.institutionalization l.institutionalization d.blackmun l.blackmun d.transcurbprevcong l.transcurbprevcong d.sgpetitions l.sgpetitions l.docket
est store moffetMyJCSmajparty
estat ic





*** APPENDIX TABLE 5 ***

reg d.docket d.pcthighestcoalition l.pcthighestcoalition d.pctsplitdec l.pctsplitdec d.lagpctideologydisconnected l.lagpctideologydisconnected d.meddistmb l.meddistmb d.fouryrmajorlaws l.fouryrmajorlaws d.judicialagreement l.judicialagreement d.appealsscdist l.appealsscdist d.pre1988 l.pre1988 d.institutionalization l.institutionalization d.blackmun l.blackmun d.transcurbprevcong l.transcurbprevcong d.sgpetitions l.sgpetitions l.docket
est store moffetMyBaileymed

reg d.docket d.pcthighestcoalition l.pcthighestcoalition d.pctsplitdec l.pctsplitdec d.lagpctideologydisconnected l.lagpctideologydisconnected d.vfpdistmb l.vfpdistmb d.fouryrmajorlaws l.fouryrmajorlaws d.judicialagreement l.judicialagreement d.appealsscdist l.appealsscdist d.pre1988 l.pre1988 d.institutionalization l.institutionalization d.blackmun l.blackmun d.transcurbprevcong l.transcurbprevcong d.sgpetitions l.sgpetitions l.docket
est store moffetMyBaileyvfp

reg d.docket d.pcthighestcoalition l.pcthighestcoalition d.pctsplitdec l.pctsplitdec d.lagpctideologydisconnected l.lagpctideologydisconnected d.jcmeddistmb l.jcmeddistmb d.fouryrmajorlaws l.fouryrmajorlaws d.judicialagreement l.judicialagreement d.appealsscdist l.appealsscdist d.pre1988 l.pre1988 d.institutionalization l.institutionalization d.blackmun l.blackmun d.transcurbprevcong l.transcurbprevcong d.sgpetitions l.sgpetitions l.docket
est store moffetMyBaileyjcmed

reg d.docket d.pcthighestcoalition l.pcthighestcoalition d.pctsplitdec l.pctsplitdec d.lagpctideologydisconnected l.lagpctideologydisconnected d.partymeddistmb l.partymeddistmb d.fouryrmajorlaws l.fouryrmajorlaws d.judicialagreement l.judicialagreement d.appealsscdist l.appealsscdist d.pre1988 l.pre1988 d.institutionalization l.institutionalization d.blackmun l.blackmun d.transcurbprevcong l.transcurbprevcong d.sgpetitions l.sgpetitions l.docket
est store moffetMyBaileymajparty
